package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.Page;
import com.xingxuecn.limit.common.model.ResultModel;
import com.xingxuecn.limit.common.model.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zgx at 2018/9/10 0010 下午 2:36
 */
public interface UserService {
    List<User> findAll() throws SQLException;
    List<User> search(User user) throws SQLException;
    Page searchPage(User user, Integer page, Integer rows) throws SQLException;
    int add(User user) throws SQLException;

    int update(User user) throws SQLException;

    int delete(Integer id) throws SQLException;

}
